package com.zjjk.transfer.source.entity;

import java.math.BigDecimal;
import io.geekidea.springbootplus.framework.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 订单详情
 *
 * @author xuziyang
 * @since 2021-03-26
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("ltech_order_detail")
public class SourceOrderDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

/**
     * 订单id
     */
    private Integer orderId;

/**
     * 菜品id
     */
    private Integer dishId;

/**
     * 用户id
     */
    private Integer userId;

/**
     * 菜品数量
     */
    private Integer dishAmount;

/**
     * 菜品单价
     */
    private BigDecimal dishPrice;

/**
     * 菜品折后价
     */
    private BigDecimal dishDiscountPrice;

/**
     * 餐盒费
     */
    private BigDecimal mealsFee;

/**
     * 创建时间
     */
    private Date createTime;

/**
     * 更新时间
     */
    private Date updateTime;

/**
     * 菜品折扣
     */
    private BigDecimal dishDiscount;

}
